<?php

// make sure only logged in users can see this page
gatekeeper ();
// set context to add a "cancel" option
elgg_set_context ( 'resumes_form' );
if (isset ( $vars ['entity_guid'] )) {
	$entity = get_entity ( $vars ['entity_guid'] );
}
// set_page_owner(get_loggedin_user()->getGUID());
elgg_set_page_owner_guid ( $_SESSION ['user']->guid );
$title = elgg_echo ( 'resume:add:skill' );
// start building the main column of the page
$area = elgg_view_title ( $title );
// Add the form to this section
$area .= elgg_view_form ( "resume/addskill" , null, array(
	'group_guid' => $vars['group_guid'],
	'entity' => $entity,
))
;

// layout the page
$body = elgg_view ( 'page/layouts/one_sidebar', array (
		'content' => $area 
) );
// draw the page
echo elgg_view_page ( $title, $body );
